#include <iostream>

int main()
{

	using namespace std;

	int *parray = new int [ 5 ];
	for (int i = 0; i < 5; i ++)
	{
		cout << parray[i] << endl;
	}

	cout << "init" << endl;
	
	for (int i = 0; i < 5; i ++)
	{
		parray[i] = i;
	}

	for (int i = 0; i < 5; i ++)
	{
		cout << parray[i] << endl;
	}

	cout << "++++++++++++++++++"<< endl;

	int * p = parray;
	int count = 5;
	while (count >= 0)
	{
		cout << "p" << count << ": " << *p << endl;
		count --;
		p ++;
	}
	delete [] parray;
}
